package CTitle
{
	import UIUtils.uif_color;
	
	import api_servers.pi_servers;
	
	public class ct_data extends Object {
		public static const defaultText: String = 'Поздравляю';
		
		public static const backs: Array = [
			{
				id: 28,
				rect: [171, 92, 487-171, 178-92],
				color: uif_color.RGB(252, 237, 155),
				align: 'l',
				valign: 'b'
			},
			{
				id: 29,
				rect: [175, 76, 550-175, 144-76],
				color: uif_color.RGB(252, 237, 155),
				align: 'c',
				valign: 'b'
			},
			{
				id: 30,
				rect: [76, 70, 443-76, 125-70],
				color: uif_color.RGB(252, 237, 155),
				rotation: -8,
				align: 'c',
				valign: 'b'
			},
			{
				id: 31,
				rect: [13, 86, 429-13, 152-86],
				color: uif_color.RGB(252, 237, 155),
				align: 'c',
				valign: 'b'
			},
			{
				id: 1,
				rect: [110, 6, 376-110, 43-6],
				color: 0xFFFFFF,
				align: 'c',
				valign: 'b'
			},
			{
				id: 2,
				rect: [139, 16, 346-139, 69-16],
				color: 0xFFFFFF,
				align: 'c',
				valign: 'b'
			},
			{
				id: 3,
				rect: [131, 33, 357-131, 77-33],
				color: 0xFFFFFF,
				align: 'c',
				valign: 'b'
			},
			{
				id: 4,
				rect: [144, 12, 345-144, 77-12],
				color: 0xFFFFFF,
				align: 'c',
				valign: 'b'
			},
			{
				id: 5,
				rect: [144, 12, 345-144, 77-12],
				color: 0x391C03,
				align: 'c',
				valign: 'b'
			},
			{
				id: 6,
				rect: [156, 23, 394-156, 94-23],
				color: 0x2A0000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 7,
				rect: [100, 24, 289-100, 70-24],
				color: 0x2A0000,
				align: 'c',
				valign: 't'
			},
			{
				id: 8,
				rect: [17, 28, 166-17, 85-28],
				color: 0x2A0000,
				align: 'l',
				valign: 't'
			},
			{
				id: 9,
				rect: [146, 30, 296-146, 84-30],
				color: 0x2A0000,
				align: 'r',
				valign: 't'
			},
			{
				id: 10,
				rect: [115, 21, 374-115, 87-21],
				color: 0x2A0000,
				align: 'c',
				valign: 't'
			},
			{
				id: 11,
				rect: [90, 55, 310-90, 101-55],
				rotation: -15,
				color: 0x2A0000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 12,
				rect: [112, 27, 363-112, 80-27],
				color: 0x2A0000,
				align: 'c',
				valign: 't'
			},
			{
				id: 13,
				rect: [145, 29, 329-145, 113-29],
				color: 0x2A0000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 14,
				rect: [54, 26, 420-54, 146-26],
				color: 0x2A0000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 15,
				rect: [85, 85, 285-85, 170-85],
				color: 0x2A0000,
				align: 'l',
				valign: 't'
			},
			{
				id: 16,
				rect: [33, 66, 283-33, 208-66],
				color: 0x2A0000,
				align: 'r',
				valign: 't'
			},
			{
				id: 17,
				rect: [20, 80, 229-20, 171-80],
				color: 0x2A0000,
				align: 'r',
				valign: 't'
			},
			{
				id: 18,
				rect: [89, 71, 287-89, 175-71],
				color: 0x2A0000,
				align: 'l',
				valign: 't'
			},
			{
				id: 19,
				rect: [62, 57, 265-62, 161-57],
				color: 0x2A0000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 20,
				rect: [74, 66, 292-74, 171-66],
				color: 0x001520,
				align: 'l',
				valign: 't'
			},
			{
				id: 21,
				rect: [89, 104, 298-89, 173-104],
				color: 0x2A0000,
				align: 'l',
				valign: 't'
			},
			{
				id: 22,
				rect: [15, 92, 193-15, 172-92],
				color: 0x10002A,
				align: 'r',
				valign: 't'
			},
			{
				id: 23,
				rect: [82, 74, 303-82, 125-74],
				rotation: 8,
				color: 0x00102A,
				align: 'c',
				valign: 't'
			},
			{
				id: 24,
				rect: [68, 87, 301-68, 127-87],
				color: 0x2A0000,
				align: 'c',
				valign: 't'
			},
			{
				id: 25,
				rect: [146, 65, 359-146, 119-65],
				rotation: 8,
				color: 0xFFFDFD,
				align: 'l',
				valign: 't'
			},
			{
				id: 26,
				rect: [149, 71, 360-149, 120-71],
				color: 0x201000,
				align: 'c',
				valign: 'b'
			},
			{
				id: 27,
				rect: [132, 77, 353-132, 143-77],
				color: 0x706050,
				align: 'c',
				valign: 'b'
			}
		];
		
		public static const fonts: Array = [
			{
				name:'times',
				tf: {
					leading: 0
				}
			},
			{
				name:'GOTHIC',
				tf: {
					leading: 0
				}
			},
			{
				name:'MTCORSVA',
				tf: {
					leading: 0
				}
			},
			{
				name:'impact',
				tf: {
					leading: 0
				}
			},
			{
				name:'GARA',
				tf: {
					leading: 0
				}
			},
			{
				name:'comic',
				tf: {
					leading: 0
				}
			},
			{
				name:'Ekaterina',
				tf: {
					leading: -20
				}
			},
			{
				name:'EkaterinaTwo',
				tf: {
					leading: -20
				}
			}
		] 
		
		public static const backsURL: String = pi_servers.ADDR[2];
		
		public static function fromID(a_id: int): Object {
			for (var i:int=0; i<backs.length; i++) {
				if (backs[i].id == a_id) return backs[i];
			} 
			return null;			
		}
		
	}
}